<?php
namespace Admin\Model;
use Think\Model;
class WxconfigModel extends Model {
    //自动验证
    protected $_validate = array(
         array('wxc_id','require','标识符必须！',self::EXISTS_VALIDATE ),
         array('wxc_name','require','名称必须！',self::EXISTS_VALIDATE ),
         array('wxc_key','require','键名必须！',self::EXISTS_VALIDATE ),
         array('wxc_value','require','value值必须！',self::EXISTS_VALIDATE ),
         array('wxc_createtime','require','创建时间必须！',self::EXISTS_VALIDATE ),
         array('wxc_updatetime','require','更新时间必须！',self::EXISTS_VALIDATE ),
         
    );
    // 自动填充设置
    protected $_auto = array(
         array('wxc_createtime','time',self:: MODEL_INSERT,'function'),
         array('wxc_updatetime','time',self:: MODEL_INSERT,'function'),
         array('wxc_updatetime','time',self:: MODEL_UPDATE,'function'),
         
    );
}